<template>
  <div
    class="img-wrapper"
    :style="{width: width + 'px', height: height + 'px'}"
  >
    <image :src="url" alt="" style="width: 100%; height: 100%;" mode="aspectFill" />
  </div>
</template>

<script>
export default {
  props: {
    url: {
      type: String,
      default: ''
    },
    width: {
      type: Number,
      default: 100
    },
    height: {
      type: Number,
      default: 100
    }
  }
}
</script>

<style lang="scss" scoped>
.img-wrapper {
    border-radius: 10px;
    overflow: hidden;
}
</style>
